<?php
require_once 'PerformanceData.php';

class Admin_PerformanceDataController extends HTech_Controller_Action
{
    function init()
    {
        $cfg = array(
            'model' => 'PerformanceData', 
            //'form' => 'Emms_Form_Loan_LoanMaster',
            //'config' => array('add' => 'loan_masters'),
            //'redirect' => 'add',
            //'flashMessenger' => true
        );
        parent::init($cfg);   
    }
    
    public function locationAction()
    {   
        $pd = $this->_model->p2date('Location');
        $this->view->pd = $pd['data'];
        $this->view->indicators = $pd['indicators'];
        $this->_helper->layout->setLayout('view');
    }
    
    public function officerAction()
    {   
        $pd = $this->_model->p2date('Officer');
        $this->view->pd = $pd['data'];
        $this->view->indicators = $pd['indicators'];
        $this->_helper->layout->setLayout('view');
    }
    
    public function programAction()
    {   
        $pd = $this->_model->p2date('Program');
        $this->view->pd = $pd['data'];
        $this->view->indicators = $pd['indicators'];
        $this->_helper->layout->setLayout('view');
    }
    
    public function productLineAction()
    {   
        $pd = $this->_model->p2date('Line');
        $this->view->pd = $pd['data'];
        $this->view->indicators = $pd['indicators'];
        $this->_helper->layout->setLayout('view');
    }
        
}
